
public final class ImmutableClass
{   
    private final String value ;
    
    public ImmutableClass(String value){
        this.value = value;
    }
    
    public String getValue(){
        return value ;
    }
    
    public ImmutableClass setValue(String newValue){
       return  new ImmutableClass(newValue);
    }
}
